package com.liwuji.liwujispringcloudopenfeign.controller;

import com.liwuji.liwujispringcloudopenfeign.feign.ProducerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liwuji
 * @date 2024/3/5
 * @desc
 **/
@RestController
@RequestMapping("/demo")
public class DemoController {
    @Resource
    private ProducerService producerService;
    @GetMapping
    public String demo(){
        return producerService.getStores();
    }
}
